<template>
  <view class="my">
   <view class="login" v-if="!token">
     <my-login></my-login>
   </view>
   <view class="user" v-else>
     <my-userinfo></my-userinfo>
   </view>
  </view>
</template>

<script>
  import mixins from '../../mixins/mixins.js'
  import { mapState }  from 'vuex'
  export default {
  mixins:[mixins],
  computed:{
    ...mapState('user',['token'])
  },
    data() {
      return {
        
      };
    }
  }
</script>

<style lang="scss">
.my, page {
  height: 100%;
}
</style>
